<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>作业4</title>
	</head>
	<body>
		<div id="q1">
		<img src="images/pic.gif" />
			</div>
		<script src="../jquery-1.12.4.js" type="text/javascript"></script>
		<script>
			$(function(){
				$("img").click(function(){
					$("div").css({"border":"1px solid red","width":"200px","margin":"0px auto"});
				});
			});
		</script>
	</body>
</html>
